﻿#ifndef BASE_MATH_IMPL_H
#define BASE_MATH_IMPL_H

#pragma execution_character_set("utf-8")

#include <QObject>

#define  ADD_OPTION   1
#define  DESC_OPTION  2
#define  ADD_DESC_OPTION 3
#define  MULT_OPTION  4
#define  DIV_OPTION   8

#define  STR_ADD_OPTION   "+"
#define  STR_DESC_OPTION  "-"
#define  STR_MULT_OPTION  "×"
#define  STR_DIV_OPTION   "÷"



class BaseMathTools : public QObject
{
    Q_OBJECT
public:
    explicit BaseMathTools(QObject *parent = nullptr);
   static QString getRandomOption(int option);
   static int generateRandomNumber(int min,int max);
   static int doCount(int num1,int num2,QString op);

};

#endif // BASE_MATH_IMPL_H
